﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="VideoTest.aspx.cs" Inherits="VideoTest" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" Runat="Server">

<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" />
<hr />
<table>
<tr>
<td> <asp:TextBox ID="txtName" runat="server" ></asp:TextBox></td>
</tr>
</table>
<asp:DataList ID="DataList1" Visible="true" runat="server" AutoGenerateColumns="false"
    RepeatColumns="4" CellSpacing="18">
    <ItemTemplate>
     
        <iframe width="420" height="345" runat="server" id="ifUrl"
             src='<%# Eval("Url") %>'
             >
        </iframe>
    </ItemTemplate>
</asp:DataList>
<script src="Js/flowplayer-3.2.12.min.js" type="text/javascript"></script>
<script type="text/javascript">
    flowplayer("a.player", "FlowPlayer/flowplayer-3.2.16.swf", {
        plugins: {
            pseudo: { url: "FlowPlayer/flowplayer.pseudostreaming-3.2.12.swf" }
        },
        clip: { provider: 'pseudo', autoPlay: false,autoBuffering: false},
    });
</script>
<asp:Button ID="ButtonShowVideo" runat="server" 
   onclick="ButtonShowVideo_Click" Text="Show Video" />

    <asp:Repeater ID="Repeater1" runat="server">
        <ItemTemplate>
            <object id="player" 
                       classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" 
                       height="170" width="300">
                <param name="url" 
                  value='<%# "FileCS.ashx?id=" + Eval("Id") %>'/>
                <param name="showcontrols" value="true" />
                <param name="autostart" value="true" />
            </object>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InnerRight" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedBox" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FeatureDocBox" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ScriptContent" Runat="Server">
</asp:Content>

